package com.ego.e.adapter

import android.content.Context
import android.widget.TextView
import com.ego.e.R

/**
 * Created by lxy on 2017/5/22.
 */
class StringAdapter(context: Context, datas: MutableList<String>) : Adapter<String>(context, datas) {

    override fun layout(): Int {
        return R.layout.adapter_string
    }

    override fun bind(holder: EHolder, data: String, position: Int) {
        var tv_name = holder.find<TextView>(R.id.tv_name)
        tv_name.setText(data)
    }
}